Remove-NetRoute -DestinationPrefix "0.0.0.0/0" -Confirm:$false
Remove-NetRoute -DestinationPrefix "192.168.2.0/24" -Confirm:$false
Remove-NetRoute -DestinationPrefix "192.168.6.0/24" -Confirm:$false


$dnsserver = (Get-NetIPConfiguration -InterfaceAlias "WLAN").DNSServer.ServerAddresses

New-NetRoute -DestinationPrefix "0.0.0.0/0" -InterfaceIndex 18 -NextHop $dnsserver -RouteMetric 435

New-NetRoute -DestinationPrefix "192.168.2.0/24" -InterfaceIndex 7 -NextHop "192.168.2.254" -RouteMetric 2
New-NetRoute -DestinationPrefix "192.168.6.0/24" -InterfaceIndex 7 -NextHop "192.168.2.254" -RouteMetric 2

Read-Host -Prompt "Press Enter to continue"
